package jvm;

/**
 * 隐式加载
 *
 */
class  SubClass01 extends Class01{
    static {
        System.out.println("SubClass01.static");
    }
}
public class TestClassLoader00 {
    public static void main(String[] args) {
        //System.out.println(Class01.cap);
        //Class01.doPrint();
        new SubClass01();
    }
}
class Class01{
    static int cap=100;
    static {
        System.out.println("Class01.static");
    }
    static void doPrint() {
        System.out.println("print class info");
    }
}
